package com.zz.parkingsystem.service.impl;

import com.zz.parkingsystem.entity.Strategy;
import com.zz.parkingsystem.mapper.StrategyMapper;
import com.zz.parkingsystem.service.StrategyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StrategyServiceImpl implements StrategyService {
    @Autowired
    private StrategyMapper strategyMapper;
    @Override
    public int deleteByPrimaryKey(Long id) {
        return strategyMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Strategy record) {
        return strategyMapper.insert(record);
    }

    @Override
    public int insertSelective(Strategy record) {
        return strategyMapper.insertSelective(record);
    }

    @Override
    public Strategy selectByPrimaryKey(Long id) {
        return strategyMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Strategy record) {
        return strategyMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Strategy record) {
        return strategyMapper.updateByPrimaryKey(record);
    }
}
